package com.atguigu.springcloud;

import com.atguigu.myrule.ReplaceRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @auther clj
 * @create 2020-02-19 16:22
 */
@SpringBootApplication
@EnableDiscoveryClient //该注解用于向使用consul或者zookeeper作为注册中心时注册服务
@RibbonClient(name = "cloud-provider-service",configuration= ReplaceRule.class)
public class OrderCustomerRibbonMain84 {
    public static void main(String[] args) {
        SpringApplication.run(OrderCustomerRibbonMain84.class, args);
    }
}